import request from '@/utils/request'
import qs from 'qs'
// 获取自身及下级分公司的所有客户
export const getuserlistapi = () => request.get('pio-microservice-biz/cbm/organization/company/list')
// 单位电量分析
export const getdianfenxiapi = params => request.get('pio-microservice-biz/pio/statement/epower/common/analysis/list', { params })
// 导出单位电量分析数据
export const postdaochuapi = data => request.post('pio-microservice-biz/pio/statement/epower/common/analysis/excel', data, { responseType: 'arraybuffer' })
// 单位负荷分析
export const getdanweifhapi = params => request.get('pio-microservice-biz/pio/statement/load/common/analysis/list', { params })
// 导出单位负荷分析数据
export const exportdanweifhapi = data => request.post('pio-microservice-biz/pio/statement/load/common/analysis/excel', data, { responseType: 'arraybuffer' })
// 负荷特性分析
export const getfuhetexiaoapi = params => request.get('pio-microservice-biz/pio/statement/load/common/features-analysis/list', { params })
// 导出负荷特性分析数据
export const exportfuhetxapi = data => request.post('pio-microservice-biz/pio/statement/load/common/features-analysis/excel', data, { responseType: 'arraybuffer' })
// 设备负荷分析
export const getshebeifuheapi = params => request.get('pio-microservice-biz/pio/statement/load/common/device-analysis/list', { params })
// 导出设备负荷分析数据
export const exportfuheapi = data => request.post('pio-microservice-biz/pio/statement/load/common/device-analysis/excel', data, { responseType: 'arraybuffer' })
// 变压器负荷率分析
export const getbainyaqiapi = params => request.get('pio-microservice-biz/pio/statement/load/transformer/list', { params })
// 导出变压器负荷率分析数据
export const exportbianyaqiapi = data => request.post('pio-microservice-biz/pio/statement/load/transformer/excel', data, { responseType: 'arraybuffer' })
// 根据ID获取变压器数据
export const getshujuapi = params => request.get('pio-microservice-biz/pio/statement/load/transformer/get', { params })
// 获取变压器告警数据
export const getgaojingapi = params => request.get('pio-microservice-biz/pio/statement/load/transformer/alarm/list', { params })
// 获取多个设备的多个测点数据
export const getduogecedianapi = params => request.get('pio-microservice-biz/pio/iot-item/his/bitch/list', { params })
// 导出多个设备的多个测点数据
export const exportdeviceapi = data => request.post('pio-microservice-biz/pio/iot-item/his/bitch/excel', data, { responseType: 'arraybuffer' })
// 获取设备的测点曲线数据
export const gettagquxianapi = params => request.get('pio-microservice-biz/pio/iot-item/his/get', { params })

// 储能设备列表
export const getchunneglistappi = params => request.get('pio-microservice-biz/pio/ect/statistical/analysis/energy/storage/equip/list', { params })
// 储能数据列表
export const getchunnegpageapi=params=>request.get('pio-microservice-biz/pio/ect/statistical/analysis/energy/storage/page/list',{params})